package com.gome.ocean.dao.authority;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.authority.User;



/**
 * @作者 liuqingxia
 * @创建时间 2016-02-18 18:11:33
 * @版本 1.00
 * @修改记录
 */
@Repository("userDAO")
public interface UserDAO {

    int insertUser(User user);

    int removeUserById(Long id);

    int removeUserByEmail(@Param("email") String email);

    int updateUser(User user);

    List<User> findAllUsers(RowBounds rowBounds);

    User findUserById(Long id);

    User findUserByEmail(@Param("email") String email);
}
